package com.Shiliu.dao;

import com.Shiliu.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;

public interface UserDao {
    public User getLoginUser(Connection connection, String userCode, String userPassword) throws SQLException;
    public  int add(Connection connection, User user) throws Exception;//增加即注册
    public int modify(Connection connection, User user, int id)throws Exception;//修改
    public  User getMyInfo(Connection connection,Integer id) throws SQLException;//查询个人信息
}
